package src.算法.希尔排序;

import src.算法.Person;


import java.util.Arrays;

public class MainTest {
    public static void main(String[] args) {
        Integer[] arr = {1,3,5,2,7,4,9,8,6};
        Sheller.sort(arr);
        System.out.println(Arrays.toString(arr));
        System.out.println("------------------");
        Person wj = new Person(3, "wj");
        Person tom = new Person(2, "Tom");
        Person gay = new Person(4, "Gay");
        Person any = new Person(1, "Any");

        Person[] p = {wj,tom,gay,any};
        Sheller.sort(p);

        for (Person person : p) {
            System.out.print(person.getId() +":"+ person.getName() + " ");
        }
    }
}
